projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bb3aec
)
Improve regexp in org-table-finish-edit-field
author
Mattias Engdegård
<mattiase@acm.org>
Thu, 16 Apr 2020 17:40:26 +0000
(19:40 +0200)
committer
Mattias Engdegård
<mattiase@acm.org>
Thu, 16 Apr 2020 17:53:10 +0000
(19:53 +0200)
* lisp/org/org-table.el (org-table-finish-edit-field):
Further improvement of regexp, as suggested by Paul Eggert.
lisp/org/org-table.el
patch
|
blob
|
history
diff --git
a/lisp/org/org-table.el
b/lisp/org/org-table.el
index 8927b1c2ed9140f7798a96b849abeb5980f1bd66..abba29952e6e1b05dc8fae3560ae81cd78446f14 100644
(file)
--- a/
lisp/org/org-table.el
+++ b/
lisp/org/org-table.el
@@
-2005,7
+2005,7
@@
the table and kill the editing buffer."
text)
(goto-char (point-min))
(while (re-search-forward "^#.*\n?" nil t) (replace-match ""))
- (while (re-search-forward "[ \t]*\
\(?:\n[ \t]*\\)+
" nil t)
+ (while (re-search-forward "[ \t]*\
n[ \t\n]*
" nil t)
(replace-match " "))
(setq text (org-trim (buffer-string)))
(set-window-configuration cw)